
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class HuoyueduActiveCfg : public ManualSingleton <HuoyueduActiveCfg>
{
	friend ManualSingleton <HuoyueduActiveCfg>;
public:
	HuoyueduActiveCfg();
	~HuoyueduActiveCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const HuoyueduActiveCfgInfo *GetHuoyueduActiveCfgInfo(int32_t id);
	const HuoyueduActiveCfgMap *GetHuoyueduActiveCfgMap() { return &m_HuoyueduActiveCfgMap; }
private:
	HuoyueduActiveCfgMap m_HuoyueduActiveCfgMap;
};

#define  g_MakeHuoyueduActiveCfgTable() (HuoyueduActiveCfg::Instance())
#define  g_GetHuoyueduActiveCfgTable() (HuoyueduActiveCfg::GetInstance())
#define  g_DelHuoyueduActiveCfgTable() (HuoyueduActiveCfg::Destroy())